package com.deram.ctin.serv.third.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("serv-third")
@RequestMapping("/captchaApi")
public interface CaptchaApi {

    @PostMapping("/create")
    String create(@RequestParam("key") String key);

    @PostMapping("/verify")
    void verify(@RequestParam("key") String key, @RequestParam("captcha") String captcha);
}
